﻿using BW.MesProject.Public.ErrorCode;
using BW.MesProject.WareHouse.Domain;
using BW.MesProject.WareHouse.Infrastructure.Dto.Input;
using BW.MesProject.WareHouse.Infrastructure.Dto.OutPut;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BW.MesProject.WareHouse.Infrastructure
{
    public interface IJobServices
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="Job"></param>
        /// <returns></returns>
        ApiResult<int> AddJob(JobModel Job);

        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="qryInput"></param>
        /// <returns></returns>
        ApiResult<List<JobOut>> GetJob(QryInput qryInput);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateJob(JobModel model);

        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        ApiResult<int> UpdateEnable(JobModel model);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        ApiResult<int> UpdateDelete(string Id);

        /// <summary>
        /// 查询编码
        /// </summary>
        /// <param name="JobId"></param>
        /// <returns></returns>
        ApiResult<int> GetJobId(string JobId);

    }
}
